﻿<?php
session_start();
require_once("basic.class.php");
$vote = new Vote();
$vote->judgeLogin();
if(isset($_POST['subMessage'])):
	$vote->addMessage($_SESSION['user_account'],$_POST['content']);
endif;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" /><!--如果是IE8时强制以IE7显示-->
<meta name="keywords" content=""><!--SEO关键字-->
<meta name="description" content=""><!--SEO描述-->
<link rel="shortcut icon" type="image/ico" href="images/favicon.ico"><!--选项卡图标-->
<title>湖南农业大学工学院09汽车一班班委竞选投票活动</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<!--[if ie]>
<link rel="stylesheet" href="css/ie.css">
<script type="text/javascript" src="js/DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');/*在需要png透明的元素里面加上.png样式即可（class="png"）*/
</script>
<![endif]-->
</head>
<body>

	<div class="header h100"><!-- header -->
		<div class="w960 bc">
			<p style="font-size:40px">湖南农业大学工学院09汽车一班班委竞选投票活动</p>
			<ul class="header_function fr mr10 f18 tc">
			</ul>
		</div>
	</div><!-- end_header -->
	<div class="main w960 bc oh"><!-- main -->
		<a href="vote.php" style="color:blue;font-size:18px;">返回</a>
		<div class="i_h_content fl mr20 ml10 oh"><!-- left_content -->
			
			
			<div class="comment_board oh h">
				<?php foreach($vote->listMessage() as $v):?>
				<div class="comments pb20 mb20">
					<div class="parent_comment oh">
						<a href="" class="b_avatar fl"><img src="images/my_avatar.jpg" alt="" /></a>
						<div class="article_right fr w500 oh h">
							<p class="article_owner b4 f12"><a href=""><?php echo $v['create_time'];?></a></p>
							<div class="article_text mt20">
								<p><?php echo $v['content'];?></p>
							</div>
							<div class="article_bot oh f12 mt20">
								<div class="actions fr">
								</div>
							</div>
						</div>
					</div>
				</div>
					<?php endforeach;?>
			
				
				<form action='' method='post' class="">
					<textarea name="content" class="comment_textarea h100 mt20"></textarea>
					<input type="submit" name="subMessage" value="发表" class="edit_btn img png mt20" />
				</form>
				
			</div>
		
		</div><!-- end_left_content -->
		
		<div class="i_h_sider fr ml10"><!-- right_sider -->
		
			
		</div><!-- end_right_sider -->
	</div><!-- end_main -->
	
	<div class="footer w960 bc pb20 mt20">
		<p class="copyright b4 ml10">&copy; 2012 zhouyi <a href="">about me</a></p>
	</div>
	
</body>
</html>